package com.hzhk.happyrent.network;

import android.support.annotation.Nullable;

import com.hzhk.happyrent.bean.rent.ProductListModel;
import com.hzhk.happyrent.bean.rent.ProductListNewsBean;
import com.hzhk.happyrent.bean.rent.RentHeaderPagerBean;
import com.hzhk.happyrent.bean.rent.TypesModel;

import retrofit2.http.GET;
import retrofit2.http.Query;
import rx.Observable;

public interface RentApi {
    @GET("zapis/goods/types")
    Observable<TypesModel> getProductType(@Query("seat") String seat);
    @GET("zapis/ad/get_sliders")
    Observable<RentHeaderPagerBean> getRentHeader(@Query("seat") String seat);
    @GET("zapis/goods/goods_list")
    Observable<ProductListModel> getGoodsList(@Query("action") String action,
                                              @Nullable
                                                        @Query("goods_type") String type,
                                              @Nullable
                                                        @Query("sort_id") String sort_id,
                                              @Query("page") int page,
                                              @Query("limit") int limit);
    @GET("zapis/goods/goods_list")
    Observable<ProductListNewsBean> getGoodNewsList(@Query("action") String action,
                                                    @Nullable
                                                 @Query("goods_type") String type,
                                                    @Nullable
                                                 @Query("sort_id") String sort_id,
                                                    @Query("page") int page,
                                                    @Query("limit") int limit);
}